import axios from "./http.js";
import dayjs from "dayjs";
var http = axios.http
/*
接口设计
登陆(验证码、登陆、忘记密码、修改密码)
用户(关注列表、关注、取消关注、)
帖子(发布、详情、点赞、)
聊天(列表、)
*/ 
export default{ 
	dayjs,
	list(data){
	        return http('POST','/api/list',data)
	    },
	code(data){
	        return http('POST','/api/login/code',data)
	    },
	change(data){
	        return http('POST','/api/login/change',data)
	    },
	careLsit(data){
	        return http('POST','/api/user/careLsit',data)
	    },
	care(data){
	        return http('POST','/api/user/care',data)
	    },
	info(data){
	        return http('POST','/api/user/info',data)
	    },
	post(data){
	        return http('POST','/api/post/post',data)
	    },
	detail(data){
	        return http('POST','/api/post/detail',data)
	    },
	like(data){
	        return http('POST','/api/post/like',data)
	    }, 
	upload(data){
	        return http('POST','/api/file/upload',data)
	    },
	  
	
}